<?php
/**
 * Created by PhpStorm.
 * User: WhiteBlue
 * Date: 15/3/2
 * Time: 下午2:36
 */

Session_Start();
require 'vendor/autoload.php';

bootstrap::boot();
$router = loader::load("router");

if (config('isDebug') == true) {
    $debug = loader::load("debug");
    $debug->echo_msg($router);
}

dispatcher::dispatch($router);

?>